package com.zzyl.mapper;

import com.zzyl.vo.NursingLevelVo;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface NursingLevelMapper {
    List<NursingLevelVo> getAllPlan();

    void addNursingLevel(NursingLevelVo nursingLevelVo);

    List<NursingLevelVo>selectByPagePlan(String name, Integer status);


    NursingLevelVo getById(Long id);

    void updateNursingLevel(NursingLevelVo nursingLevelVo);

    @Delete("delete from nursing_level where id=#{id}")
    void deleteNursingLevelById(Long id);

    @Update("update nursing_level set status=#{status} where id=#{id}")
    void o(Long id, Integer status);
}
